package org.ovirt.microvirt.services;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import org.ovirt.microvirt.beans.Storage;

@Path("system/storage")
public interface StorageService {
	@GET()
	@Path("/all")
	List<Storage> list();

	@GET
	@Path("/{id}")
	Storage getById(@PathParam("id") int id);

	@POST()
	@Path("/save")
	Storage persist(Storage storage);
}
